package com.zhangcong.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书信息对象 lib_book
 * 
 * @author zhangcong
 * @date 2023-05-24
 */
public class LibBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Integer id;

    /** 名称 */
    @Excel(name = "名称")
    private String bname;

    /** 作者 */
    @Excel(name = "作者")
    private String author;

    /** 价格 */
    @Excel(name = "价格")
    private Double price;

    /** 编号 */
    @Excel(name = "编号")
    private String isbn;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setBname(String bname) 
    {
        this.bname = bname;
    }

    public String getBname() 
    {
        return bname;
    }
    public void setAuthor(String author) 
    {
        this.author = author;
    }

    public String getAuthor() 
    {
        return author;
    }
    public void setPrice(Double price) 
    {
        this.price = price;
    }

    public Double getPrice() 
    {
        return price;
    }
    public void setIsbn(String isbn) 
    {
        this.isbn = isbn;
    }

    public String getIsbn() 
    {
        return isbn;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("bname", getBname())
            .append("author", getAuthor())
            .append("price", getPrice())
            .append("isbn", getIsbn())
            .toString();
    }
}
